﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Inventor2.Master" AutoEventWireup="true" CodeBehind="reg.aspx.cs" Inherits="HospitalSystem.reg" %>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
                <div id="sidebar">
					<ul>
						<li>
							<h2>ลงทะเบียน,แก้ไขข้อมูล</h2>
							<ul>	
								<li><a href="reg.aspx?CID=<%=Request.QueryString["CID"]%>" class="current">ข้อมูลส่วนตัว</a></li>
								<li><a href="regfamilyok2.aspx">ข้อมูลครอบครัว</a></li>
								<li><a href="healthinfo.aspx">ข้อมูลด้านสุขภาพ</a></li>
                                <li><a href="education.aspx">ข้อมูลด้านการศึกษา</a></li>
                                <li><a href="rightsinfoshow.aspx">ข้อมูลสิทธิ</a></li>
							</ul>
						</li>
					</ul>
				</div>
    <div id="content">
    <h3 class="style1">
                    ลงทะเบียน </h3>
                <span class="style1">

                     
                 
                  <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Panel ID="MainRegPanel" runat="server" BorderStyle="None" 
        GroupingText="ข้อมูลส่วนบุคคล" Width="750px" CssClass="style1">
    <table class="style50">
                <tr>
                    <td class="style2">
                        เพศ</td>
                    <td class="style17" colspan="3">
                        <asp:RadioButtonList ID="GenderR" runat="server">
                        </asp:RadioButtonList>
                        <asp:RequiredFieldValidator ID="reqName7" runat="server" controltovalidate="GenderR" errormessage="โปรดระบุเพศ" />
                    </td>
                    <td class="style16">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style2">
                        ชื่อ
                        <asp:DropDownList ID="TitlesD" runat="server" AutoPostBack="True" OnSelectedIndexChanged="TitlesD_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                    <td class="style17">
                        <asp:TextBox ID="FirstName" runat="server" Width="150px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="reqName5" runat="server" controltovalidate="FirstName" errormessage="*" />
                    </td>
                    <td class="style37">
                        นามสกุล</td>
                    <td class="style16">
                        <asp:TextBox ID="LastName" runat="server" Width="150px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="reqName6" runat="server" controltovalidate="LastName" errormessage="*" />
                    </td>
                    <td class="style16">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style2">
                        เลขประจำตัวประชาชน</td>
                    <td class="style4" colspan="2">
                        <asp:TextBox ID="CID" runat="server" Width="150px" MaxLength="13" 
                            AutoPostBack="True" ontextchanged="CID_TextChanged"></asp:TextBox>
                        &nbsp;
                        </td>
                    <td class="style4" colspan="2">
                        <asp:Label ID="CIDlabel" runat="server" Text="Label" Visible="False"></asp:Label>
                        &nbsp;<asp:Label ID="CIDST" runat="server"></asp:Label>
                        <asp:RegularExpressionValidator ID="regexTextBox1" runat="server" ControlToValidate="CID" Text="กรุณาใส่เลขบัตรประจำตัวประชาชนให้ครบ13หลัก" ValidationExpression="^[\s\S]{13,13}$" />
                        </td>
                </tr>
      
                <tr>
                    <td class="style2">
                        ว/ด/ป เกิด</td>
                    <td class="style25" colspan="4">
                        <asp:TextBox ID="birthday" runat="server" Width="149px">1/1/2000</asp:TextBox>
                        <asp:ImageButton ID="BDIB" runat="server" ImageUrl="~/img/cal.png" 
                            onclick="BDIB_Click" />
                        <asp:Calendar ID="BDCal" runat="server" BackColor="Silver" BorderStyle="Dashed" 
                            ForeColor="Black" onselectionchanged="BDCal_SelectionChanged" 
                            ShowGridLines="True" Visible="False">
                            <DayHeaderStyle BackColor="#999999" />
                            <DayStyle BackColor="#0066CC" />
                            <NextPrevStyle BackColor="Silver" />
                            <SelectedDayStyle BackColor="#CC6600" />
                            <TodayDayStyle BackColor="#CC6600" />
                        </asp:Calendar>
                    </td>
                </tr>
                </table>
                 <table class="style50">
                <tr>
                    <td class="style6">
                        หมู่เลือด</td>
                    <td class="style17">
                        <asp:RadioButtonList ID="BloodTypeRBL" runat="server">
                            
                        </asp:RadioButtonList>
                    </td>
                    <td class="style37">
                        &nbsp;</td>
                    <td class="style16">
                        ศาสนา</td>
                    <td class="style16">
                        <asp:TextBox ID="ReligionTB" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style6">
                        เชื้อชาติ</td>
                    <td class="style25" colspan="2">
                        &nbsp; <asp:TextBox ID="RaceTB" runat="server"></asp:TextBox>
                        </td>
                    <td class="style25">
                        สัญชาติ</td>
                    <td class="style25">
                        <asp:TextBox ID="NationTB" runat="server"></asp:TextBox>
                    </td>
                </tr>
                     <tr>
                         <td class="style6">
                             รหัสความเป็นต่างด้าว</td>
                         <td class="style25" colspan="2">
                             &nbsp;
                             <asp:DropDownList ID="ForeignD" runat="server" Width="100px">
                             </asp:DropDownList>
                         </td>
                         <td class="style25">
                             &nbsp;</td>
                         <td class="style25">
                             &nbsp;</td>
                     </tr>
                     <tr>
                         <td class="style6">
                             ประเภทความพิการ</td>
                         <td class="style25" colspan="2">
                             &nbsp;&nbsp;
                             <asp:DropDownList ID="DisabilityType" runat="server" Width="100px">
                             </asp:DropDownList>
                             <asp:RequiredFieldValidator ID="reqName1" runat="server" controltovalidate="DisabilityType" errormessage="เลือกประเภทความพิการ" InitialValue="0" />
                         </td>
                         <td class="style25">
                             &nbsp;</td>
                         <td class="style25">
                             &nbsp;</td>
                     </tr>
                </table>
      
        
    </asp:Panel> 
    <asp:Panel ID="CensusRegPanel" runat="server" BorderStyle="None" 
        GroupingText="ข้อมูลที่อยู่อาศัยในทะเบียนบ้าน" Width="750px" 
        CssClass="style1">
        <table class="style50">
          
            <tr>
                <td class="style15">
                    &nbsp;</td>
                <td class="style17">
                    &nbsp;</td>
                <td class="style37">
                    &nbsp;</td>
                <td class="style16">
                    &nbsp;</td>
                <td class="style16">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style15">
                    บ้านเลขที่</td>
                <td class="style17">
                    &nbsp;&nbsp;
                    <asp:TextBox ID="CHomeTB" runat="server"></asp:TextBox>
                </td>
                <td class="style37">
                    &nbsp;</td>
                <td class="style16">
                    หมู่</td>
                <td class="style16">
                    <asp:TextBox ID="CGroupTB" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style15">
                    ชื่อบ้าน</td>
                <td class="style17">
                    &nbsp;&nbsp;
                    <asp:TextBox ID="CHomeNTB" runat="server"></asp:TextBox>
                </td>
                <td class="style37">
                    &nbsp;</td>
                <td class="style16">
                    ซอย</td>
                <td class="style16">
                    <asp:TextBox ID="CSoyTB" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style25">
                    ถนน</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;
                    <asp:TextBox ID="CStreetTB" runat="server"></asp:TextBox>
                </td>
                <td class="style25">
                    ตำบล</td>
                <td class="style25">
                    <asp:DropDownList ID="CTambonD" runat="server">
                        <asp:ListItem>เลือกอำเภอก่อน</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style25">
                    อำเภอ</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;
                    <asp:DropDownList ID="CCityD" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="CCityD_SelectedIndexChanged">
                        <asp:ListItem>เลือกจังหวัดก่อน</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td class="style25">
                    จังหวัด</td>
                <td class="style25">
                    <asp:DropDownList ID="CProvinceD" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="CProvinceD_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style25">
                    รหัสไปรษณีย์</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;
                    <asp:TextBox ID="CPostcodeTB" runat="server"></asp:TextBox>
                </td>
                <td class="style25">
                    &nbsp;</td>
                <td class="style25">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style25">
                    โทรศัพท์</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;
                    <asp:TextBox ID="CTelTB" runat="server"></asp:TextBox>
                </td>
                <td class="style25">
                    มือถือ</td>
                <td class="style25">
                    <asp:TextBox ID="CCellphoneTB" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style25">
                    วันที่ย้ายเข้า</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;
                    <asp:TextBox ID="CMIDTB" runat="server"></asp:TextBox>
                    <asp:ImageButton ID="CMIDIB" runat="server" ImageUrl="~/img/cal.png" 
                        onclick="CMIDIB_Click" />
                    <asp:Calendar ID="CMIDCal" runat="server" BackColor="Silver" BorderStyle="Dashed" 
                        onselectionchanged="CMIDCal_SelectionChanged" Visible="False" 
                        ShowGridLines="True" >
                            <DayHeaderStyle BackColor="#999999" />
                            <DayStyle BackColor="#0066CC" />
                            <NextPrevStyle BackColor="Silver" />
                            <SelectedDayStyle BackColor="#CC6600" />
                            <TodayDayStyle BackColor="#CC6600" />
                    </asp:Calendar>
                </td>
                <td class="style25">
                    วันที่ย้ายออก</td>
                <td class="style25">
                    <asp:TextBox ID="CMODTB" runat="server"></asp:TextBox>
                    <asp:ImageButton ID="CMODIB" runat="server" ImageUrl="~/img/cal.png" 
                        onclick="CMODIB_Click" />
                    <asp:Calendar ID="CMODCal" runat="server" BackColor="Silver" BorderStyle="Dashed" 
                        onselectionchanged="CMODCal_SelectionChanged" ShowGridLines="True" 
                        Visible="False">
                            <DayHeaderStyle BackColor="#999999" />
                            <DayStyle BackColor="#0066CC" />
                            <NextPrevStyle BackColor="Silver" />
                            <SelectedDayStyle BackColor="#CC6600" />
                            <TodayDayStyle BackColor="#CC6600" />
                    </asp:Calendar>
                </td>
            </tr>
            <tr>
                <td class="style25">
                    สาเหตุการย้ายออก</td>
                <td class="style25" colspan="2">
                    <asp:RadioButtonList ID="CensusMoveOutReason" runat="server">
                        <asp:ListItem Value="1">ตาย</asp:ListItem>
                        <asp:ListItem Value="2">ย้าย</asp:ListItem>
                        <asp:ListItem Value="3">สาบสูญ</asp:ListItem>
                        <asp:ListItem Value="0">ไม่มี</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td class="style25">
                    &nbsp;</td>
                <td class="style25">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style25">
                    &nbsp;</td>
                <td class="style25" colspan="2">
                    <asp:RequiredFieldValidator ID="reqName2" runat="server" controltovalidate="CensusMoveOutReason" errormessage="โปรดเลือกสาเหตุการย้ายออก(ถ้าไม่มีให้เลือกไม่มี)" />
                </td>
                <td class="style25">
                    &nbsp;</td>
                <td class="style25">
                    &nbsp;</td>
            </tr>
        </table>
        </asp:Panel> 
         <asp:Panel ID="LiveRegPanel" runat="server" BorderStyle="None" 
        GroupingText="ข้อมูลที่อยู่อาศัยปัจจุบัน" Width="600px" CssClass="style1">
         <table class="style50">
            <tr>
                <td class="style46" rowspan="13">
                    &nbsp;</td>
                <td class="style3" colspan="4">
                    &nbsp;</td>
                <td class="style3">
                    &nbsp;</td>
            </tr>
             <tr>
                 <td class="style3" colspan="4">
                     ใช้ข้อมูลตามทะเบียนบ้านกรุณากด
                 </td>
                 <td class="style3">
                     <asp:CheckBox ID="LiveCopyCheck" runat="server" AutoPostBack="True" 
                         oncheckedchanged="LiveCopyCheck_CheckedChanged" />
                 </td>
             </tr>
            <tr>
                <td class="style15">
                    บ้านเลขที่</td>
                <td class="style17">
                    &nbsp;<asp:TextBox ID="LHomeTB" runat="server"></asp:TextBox>
                </td>
                <td class="style37">
                    &nbsp;</td>
                <td class="style16">
                    หมู่</td>
                <td class="style16">
                    <asp:TextBox ID="LGroupTB" runat="server"></asp:TextBox>
                </td>
            </tr>
             <tr>
                 <td class="style15">
                     ชื่อบ้าน</td>
                 <td class="style17">
                      &nbsp;<asp:TextBox ID="LHomeNTB" runat="server"></asp:TextBox>
                 </td>
                 <td class="style37">
                     &nbsp;</td>
                 <td class="style16">
                     ซอย</td>
                 <td class="style16">
                     <asp:TextBox ID="LSoyTB" runat="server"></asp:TextBox>
                 </td>
             </tr>
            <tr>
                <td class="style25">
                    ถนน</td>
                <td class="style25" colspan="2">
                    &nbsp;<asp:TextBox ID="LStreetTB" runat="server"></asp:TextBox>
                </td>
                <td class="style25">
                    ตำบล</td>
                <td class="style25">
                    <asp:DropDownList ID="LTambonD" runat="server">
                        <asp:ListItem>เลือกอำเภอก่อน</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style25">
                    อำเภอ</td>
                <td class="style25" colspan="2">
                    &nbsp;<asp:DropDownList ID="LCityD" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="LCityD_SelectedIndexChanged">
                        <asp:ListItem>เลือกจังหวัดก่อน</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td class="style25">
                    จังหวัด</td>
                <td class="style25">
                    <asp:DropDownList ID="LProvinceD" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="LProvinceD_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style10">
                    รหัสไปรษณีย์</td>
                <td class="style10" colspan="2">
                    <asp:TextBox ID="LPostcodeTB" runat="server"></asp:TextBox>
                </td>
                <td class="style10">
                    </td>
                <td class="style10">
                    </td>
            </tr>
            <tr>
                <td class="style25">
                    &nbsp;</td>
                <td class="style25" colspan="2">
                    &nbsp;</td>
                <td class="style25">
                    &nbsp;</td>
                <td class="style25">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style25">
                    วันที่ย้ายเข้า</td>
                <td class="style25" colspan="2">
                    &nbsp;<asp:TextBox ID="LMIDTB" runat="server"></asp:TextBox>
                    <asp:ImageButton ID="LMIDIB" runat="server" ImageUrl="~/img/cal.png" 
                        onclick="LMIDIB_Click" />
                    <asp:Calendar ID="LMIDCal" runat="server" NextPrevFormat="ShortMonth" 
                        onselectionchanged="LMIDCal_SelectionChanged" ShowGridLines="True" 
                        Visible="False">
                            <DayHeaderStyle BackColor="#999999" />
                            <DayStyle BackColor="#0066CC" />
                            <NextPrevStyle BackColor="Silver" />
                            <SelectedDayStyle BackColor="#CC6600" />
                            <TodayDayStyle BackColor="#CC6600" /></asp:Calendar>
                    </td>
                <td class="style25">
                    วันที่ย้ายออก</td>
                <td class="style25">
                    <asp:TextBox ID="LMODTB" runat="server"></asp:TextBox>
                    <asp:ImageButton ID="LMODIB" runat="server" ImageUrl="~/img/cal.png" 
                        onclick="LMODIB_Click" />
                    <asp:Calendar ID="LMODCal" runat="server" 
                        onselectionchanged="LMODCal_SelectionChanged" ShowGridLines="True" 
                        Visible="False">
                            <DayHeaderStyle BackColor="#999999" />
                            <DayStyle BackColor="#0066CC" />
                            <NextPrevStyle BackColor="Silver" />
                            <SelectedDayStyle BackColor="#CC6600" />
                            <TodayDayStyle BackColor="#CC6600" />
                    </asp:Calendar>
                </td>
            </tr>
            <tr>
                <td class="style25">
                    สาเหตุการย้ายออก</td>
                <td class="style25" colspan="2">
                    <asp:RadioButtonList ID="LiveMoveOutReason" runat="server">
                        <asp:ListItem Value="1">ตาย</asp:ListItem>
                        <asp:ListItem Value="2">ย้าย</asp:ListItem>
                        <asp:ListItem Value="3">สาบสูญ</asp:ListItem>
                        <asp:ListItem Value="0">ไม่มี</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td class="style25">
                    <asp:Button ID="reg_button" runat="server" onclick="reg_button_Click" 
                        style="text-align: center" Text="ลงทะเบียน" />
                </td>
                <td class="style25">
                    <asp:Button ID="edit_info" runat="server" Text="ตกลง" 
                        onclick="edit_info_Click" />
                </td>
            </tr>
            <tr>
                <td class="style25">
                    &nbsp;</td>
                <td class="style25" colspan="2">
                    <asp:RequiredFieldValidator ID="reqName3" runat="server" controltovalidate="LiveMoveOutReason" errormessage="โปรดเลือกสาเหตุการย้ายออก(ถ้าไม่มีให้เลือกไม่มี)" />
                </td>
                <td class="style25">
                    &nbsp;</td>
                <td class="style25">
                    &nbsp;</td>
            </tr>
        </table>
        </asp:Panel> 
                <asp:Panel ID="RegShowPanel" runat="server" BorderStyle="None" 
        GroupingText="ข้อมูลผู้รับบริการโดยละเอียด" Width="600px" 
        Visible="False" CssClass="style1">
    <table class="style50">
                
                <tr>
                    <td class="style15">
                        &nbsp;</td>
                    <td class="style17">
                        &nbsp;</td>
                    <td class="style4">
                        &nbsp;</td>
                    <td class="style5">
                        &nbsp;</td>
                    <td class="style3" width="600">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style15">
                        ชื่อ&nbsp;
                        <asp:Label ID="TitlesL" runat="server" Text="Titles"></asp:Label>
                        &nbsp;<asp:Label ID="RFName" runat="server"></asp:Label>
                    </td>
                    <td class="style17">
                        นามสกุล</td>
                    <td class="style4">
                        <asp:Label ID="RLName" runat="server"></asp:Label>
                    </td>
                    <td class="style5">
                        &nbsp;</td>
                    <td class="style3">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style25">
                        เลขประจำตัวประชาชน :</td>
                    <td class="style25" colspan="2">
                        <asp:Label ID="RCIDLBL" runat="server" Text="xxxxxxxxxxxxx" ForeColor="Black"></asp:Label>
                        </td>
                    <td class="style5">
                        &nbsp;</td>
                    <td class="style3">
                        &nbsp;</td>
                </tr>
                 <tr>
                    <td class="style15">
                        สัญชาติ&nbsp;:
                        <asp:Label ID="NationLB" runat="server"></asp:Label>
                    </td>
                    <td class="style17">
                        เชื้อชาติ :</td>
                    <td class="style4">
                        <asp:Label ID="RaceLB" runat="server"></asp:Label>
                    </td>
                    <td class="style5">
                        ศาสนา :</td>
                    <td class="style3">
                        <asp:Label ID="ReligionLB" runat="server" Text="ReligionLB"></asp:Label>
                     </td>
                </tr>
      
                
                <tr>
                    <td class="style15">
                        หมู่เลือด :&nbsp;
                        <asp:Label ID="BloodTypeLB" runat="server"></asp:Label>
                    </td>
                    <td class="style17">
                        วันเดือนเกิด</td>
                    <td class="style4">
                        <asp:Label ID="DBOLB" runat="server" Text="DBOLB"></asp:Label>
                    </td>
                    <td class="style5">
                        &nbsp;</td>
                    <td class="style3">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style15">
                        รหัสความเป็นต่างด้าว</td>
                    <td class="style17">
                        <asp:Label ID="ForeignerLB" runat="server"></asp:Label>
                    </td>
                    <td class="style4">
                        &nbsp;</td>
                    <td class="style5">
                        &nbsp;</td>
                    <td class="style3">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style15">
                        &nbsp;</td>
                    <td class="style17">
                        &nbsp;</td>
                    <td class="style4">
                        &nbsp;</td>
                    <td class="style5">
                        &nbsp;</td>
                    <td class="style3">
                        &nbsp;</td>
                </tr>     
                </table>
                <asp:Panel ID="CensusRegShowPanel" runat="server" BorderStyle="None" 
        GroupingText="ข้อมูลที่อยู่อาศัยในทะเบียนบ้าน" Width="600px" Visible="False">
        <table class="style50">
          
            <tr>
                <td class="style15">
                    &nbsp;</td>
                <td class="style17">
                    &nbsp;</td>
                <td class="style37">
                    &nbsp;</td>
                <td class="style16">
                    &nbsp;</td>
                <td class="style16">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style15">
                    บ้านเลขที่</td>
                <td class="style17">
                    &nbsp;&nbsp;
                    <asp:Label ID="CHomeLB" runat="server"></asp:Label>
                </td>
                <td class="style37">
                    &nbsp;</td>
                <td class="style16">
                    หมู่</td>
                <td class="style16">
                    <asp:Label ID="CGroupLB" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style15">
                    ชื่อหมูบ้าน</td>
                <td class="style17">
                    &nbsp;<asp:Label ID="CVillageLB" runat="server"></asp:Label>
                </td>
                <td class="style37">
                    &nbsp;</td>
                <td class="style16">
                    ซอย</td>
                <td class="style16">
                    <asp:Label ID="CSoyLB" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style25">
                    ถนน</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;
                    <asp:Label ID="CStreetLB" runat="server"></asp:Label>
                </td>
                <td class="style25">
                    ตำบล</td>
                <td class="style25">
                    <asp:Label ID="CTambonLB" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style25">
                    อำเภอ</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;
                    <asp:Label ID="CCityLB" runat="server"></asp:Label>
                </td>
                <td class="style25">
                    จังหวัด</td>
                <td class="style25">
                    <asp:Label ID="CProvinceLB" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style25">
                    รหัสไปรษณีย์</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;
                    <asp:Label ID="CPostcodeLB" runat="server"></asp:Label>
                </td>
                <td class="style25">
                    &nbsp;</td>
                <td class="style25">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style25">
                    โทรศัพท์</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;
                    <asp:Label ID="CTelLB" runat="server"></asp:Label>
                </td>
                <td class="style25">
                    มือถือ</td>
                <td class="style25">
                    <asp:Label ID="CCellphoneLB" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style25">
                    วันที่ย้ายเข้า</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;
                    <asp:Label ID="CMIDLB" runat="server"></asp:Label>
                </td>
                <td class="style25">
                    วันที่ย้ายออก</td>
                <td class="style25">
                    <asp:Label ID="CMOBLB" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style25">
                    สาเหตุการย้ายออก</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;&nbsp;<asp:Label ID="CMORLB" runat="server"></asp:Label>
                </td>
                <td class="style25">
                    &nbsp;</td>
                <td class="style25">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style25">
                    &nbsp;</td>
                <td class="style25" colspan="2">
                    &nbsp;</td>
                <td class="style25">
                    &nbsp;</td>
                <td class="style25">
                    &nbsp;</td>
            </tr>
        </table>
        </asp:Panel>  
        <asp:Panel ID="LiveRegShowPanel" runat="server" BorderStyle="None" 
        GroupingText="ข้อมูลที่อยู่อาศัยปัจจุบัน" Width="750px" Visible="False">
        <table class="style50">
          
            <tr>
                <td class="style15">
                    &nbsp;</td>
                <td class="style17">
                    &nbsp;</td>
                <td class="style37">
                    &nbsp;</td>
                <td class="style16">
                    &nbsp;</td>
                <td class="style16">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style15">
                    บ้านเลขที่</td>
                <td class="style17">
                    &nbsp;&nbsp;
                    <asp:Label ID="LHomeLB" runat="server"></asp:Label>
                </td>
                <td class="style37">
                    &nbsp;</td>
                <td class="style16">
                    หมู่</td>
                <td class="style16">
                    <asp:Label ID="LGroupLB" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style15">
                    ชื่อหมูบ้าน</td>
                <td class="style17">
                    <asp:Label ID="LVillageLB" runat="server"></asp:Label>
                </td>
                <td class="style37">
                    &nbsp;</td>
                <td class="style16">
                    ซอย</td>
                <td class="style16">
                    <asp:Label ID="LSoyLB" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style25">
                    ถนน</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;
                    <asp:Label ID="LStreetLB" runat="server"></asp:Label>
                </td>
                <td class="style25">
                    ตำบล</td>
                <td class="style25">
                    <asp:Label ID="LTambonLB" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style25">
                    อำเภอ</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;
                    <asp:Label ID="LCityLB" runat="server"></asp:Label>
                </td>
                <td class="style25">
                    จังหวัด</td>
                <td class="style25">
                    <asp:Label ID="LProvinceLB" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style25">
                    รหัสไปรษณีย์</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;
                    <asp:Label ID="LPostcodeLB" runat="server"></asp:Label>
                </td>
                <td class="style25">
                    &nbsp;</td>
                <td class="style25">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style25">
                    วันที่ย้ายเข้า</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;
                    <asp:Label ID="LMIDLB" runat="server"></asp:Label>
                </td>
                <td class="style25">
                    วันที่ย้ายออก</td>
                <td class="style25">
                    <asp:Label ID="LMODLB" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style7">
                    สาเหตุการย้ายออก</td>
                <td class="style7" colspan="2">
                    &nbsp;&nbsp;&nbsp;
                    <asp:Label ID="LMORLB" runat="server"></asp:Label>
                </td>
                <td class="style7">
                    </td>
                <td class="style7">
                    </td>
            </tr>
            <tr>
                <td class="style9">
                    </td>
                <td class="style9" colspan="2">
                    &nbsp;</td>
                <td class="style9">
                    <asp:Button ID="Button1" runat="server" Text="ลบเด็ก" OnClick="Button1_Click" />
                    </td>
                <td class="style9">
                    <asp:Button ID="EditReg_Button" runat="server" Text="แก้ไข" Height="26px" 
                        onclick="EditReg_Button_Click" />
                </td>
            </tr>
        </table>
        </asp:Panel>  

    </asp:Panel>

              </ContentTemplate>
    </asp:UpdatePanel>

                     &nbsp;<asp:Panel ID="Panel1" runat="server" GroupingText="จัดการรูป" Width="600px" 
                             CssClass="style1">
                             <asp:Label ID="status" runat="server" />
                             <br />
                              <asp:Panel ID="Panel2" runat="server" GroupingText="รูปส่วนตัว">
                             &nbsp;
                                                         
                                  <span class="style1">
                                  <asp:FileUpload ID="imageFile" runat="server" />
                                  <asp:Image ID="Image2" runat="server" Height="162px" Width="179px" />
                                  </span>
                                                         
                                  </asp:Panel>
                             <asp:Panel ID="Panel3" runat="server" GroupingText="รูปบัตรประจำตัวประชาชน">
                                 <asp:FileUpload ID="FileUpload3" runat="server" />
                                 <asp:Image ID="Image3" runat="server" Height="162px" Width="179px" />
                             </asp:Panel>
                             <table><tr><td class="style11" style="text-align: center">
                             <asp:Button ID="uploadpic" runat="server" onclick="uploadpic_Click" 
                                 Text="อัพโหลด" />
                             </td></tr></table>
                         </asp:Panel>
                </div>                 
                    
        
    </span></div></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
</asp:Content>
<asp:Content ID="Content3" runat="server" contentplaceholderid="head">
    <style type="text/css">
        .style1
        {
            color: #000000;
        }
        .style2
        {
            width: 118px;
        }
        .style3
        {
            width: 111px;
        }
        .style4
        {
        }
        .style5
        {
            width: 122px;
        }
        .style6
        {
            width: 123px;
        }
        .style7
        {
            width: 69px;
        }
        .style8
        {
            width: 70px;
        }
        .style9
        {
            width: 82px;
        }
        .style10
        {
            width: 105px;
        }
        .style11
        {
            width: 585px;
        }
    </style>
    </asp:Content>


